package ink.onei.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import ink.onei.common.annotation.Excel;
import ink.onei.common.core.domain.BaseEntity;

/**
 * 私信对象 private_letter
 *
 * @author zheng
 * @date 2024-02-15
 */
public class PrivateLetter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 收信者  */
    @Excel(name = "收信者 ")
    private Long receiveId;
    private String receiveName;

    /** 发信者  */
    @Excel(name = "发信者 ")
    private Long createId;

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    private String createName;

    /** 时间  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 状态 0：未读；1：已读 */
    @Excel(name = "状态 0：未读；1：已读")
    private Long status;

    /** 内容  */
    @Excel(name = "内容 ")
    private String content;

    /** 附件 */
    @Excel(name = "附件")
    private String annex;

    /** 管理员删除：0       接收人删除：1      发送人删除：2    */
    @Excel(name = "管理员删除：0       接收人删除：1      发送人删除：2   ")
    private Long deleteId;

    /** 点赞    收藏    @ */
    @Excel(name = "点赞    收藏    @")
    private Long type;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReceiveId(Long receiveId)
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId()
    {
        return receiveId;
    }
    public void setCreateId(Long createId)
    {
        this.createId = createId;
    }

    public Long getCreateId()
    {
        return createId;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setAnnex(String annex)
    {
        this.annex = annex;
    }

    public String getAnnex()
    {
        return annex;
    }
    public void setDeleteId(Long deleteId)
    {
        this.deleteId = deleteId;
    }

    public Long getDeleteId()
    {
        return deleteId;
    }
    public void setType(Long type)
    {
        this.type = type;
    }

    public Long getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("receiveId", getReceiveId())
                .append("createId", getCreateId())
                .append("time", getTime())
                .append("status", getStatus())
                .append("content", getContent())
                .append("annex", getAnnex())
                .append("deleteId", getDeleteId())
                .append("type", getType())
                .toString();
    }
}
